package com.example;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application_07 {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        DruidDataSource dataSource= (DruidDataSource) context.getBean("dataSource");
        System.out.println(dataSource);
    }
}